<?php
Yii::app()->clientScript->registerCoreScript('jquery.ui');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/underscore.1.3.3.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/json2.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/backbone.0.9.2.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.wijmo-open.all.2.2.2.min.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.wijmo-complete.all.2.2.2.min.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.layout.1.3.0.min.js');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/reset.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/jquery.wijmo-complete.all.2.2.2.min.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/themes/aristo/jquery-wijmo.css');
?>
<style>
html, body {
	margin: 0 auto;
	padding: 0;
	width: 100%;
	height: 100%;
}

#sidebar {
	background: #eeeeee;
	position: relative;
}

#sidebar-header {
	background: #dddddd;
	width: 250px;
	height: 200px;
}

.header-button {
	font-size: 0.8em !important;
	margin-top: 10px;
}

.form-item {
	margin-top: 5px;
}

.form-label	{
	font-size: 0.7em;
	padding-left: 5px;
}

.form-textbox {
	width: 250px !important;
}

.form-textbox-mini {
	width: 200px !important;
}


</style>
<?php echo $this->renderPartial('//site/pages/dialogs/new_carta', array(), true); ?>
<div id="sidebar" class="ui-layout-west">
	<div id="sidebar-header"></div>
</div>
<div class="ui-layout-center"></div>
</style>

<?php 
Yii::app()->getClientScript()->registerScript('app', $this->renderPartial('scripts/views/app', array(), true), 4);
//Yii::app()->getClientScript()->registerScript('appview2', $this->renderPartial('scripts/appview2', array(), true), 4); 
?>

